package user;

import operate.*;

import java.util.Scanner;

public class AdministratorUser extends User{
    public AdministratorUser(String name) {
        super(name);
        this.myInterfaces = new MyInterface[]{
                new ExitBook(),
                new SearchBook(),
                new ShowBook(),
                new BorrowBook(),
                new ReturnBook(),
                new AddBook(),
                new DeleteBook()
        };
    }
    public int menu(){
        System.out.println("Hello "+name+"管理员");
        System.out.println("管理员菜单：");
        System.out.println("0 —— 退出系统");
        System.out.println("1 —— 查找图书");
        System.out.println("2 —— 展示图书");
        System.out.println("3 —— 借阅图书");
        System.out.println("4 —— 归还图书");
        System.out.println("5 —— 添加图书");
        System.out.println("6 —— 删除图书");
        System.out.println("请输入你要进行的操作：");
        Scanner sc = new Scanner(System.in);
        int ret = sc.nextInt();
        return ret;

    }
}
